package homework.student;

import java.util.ArrayList;

public class TestStudent {
    public static void main(String[] args) {

        ArrayList<Student> students = new ArrayList<Student>();

        Stuway way = new Stuway();
        way.init(students);
        boolean a = way.Log();
        way.mainMenu();
        while (a){
            int choose = way.choose();
            switch (choose){
                case 1:
                    way.showAllStudents(students);
                    break;
                case 2:
                    way.addStudents(students);
                    break;
                case 3:
                    way.updataStudents(students);
                    break;
                case 4:

                    way.deleteStudents(students);
                    break;
                default:
                    System.out.println("输入有误！");
                    break;
            }
        }

    }
}
